/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.service.impl;

import com.click.app.dao.PaymentsSalaryDao;
import com.click.app.model.Employee;
import com.click.app.model.PaymentsSalary;
import com.click.app.model.Salary;
import com.click.app.service.PaymentsSalaryManager;
import java.util.Date;
import java.util.List;

/**
 *
 * @author ariel
 */
public class PaymentsSalaryManagerImpl extends GenericManagerImpl<PaymentsSalary, Long> implements PaymentsSalaryManager {

    PaymentsSalaryDao paymentsSalaryDao;

    public PaymentsSalaryManagerImpl(PaymentsSalaryDao paymentsSalaryDao) {
        super(paymentsSalaryDao);
        this.paymentsSalaryDao = paymentsSalaryDao;
    }

    public List<PaymentsSalary> findByDate(Date date) {
        return paymentsSalaryDao.findByDate(date);
    }

    public List<PaymentsSalary> findBySalary(Salary salary) {
        return paymentsSalaryDao.findBySalary(salary);
    }

    public List<PaymentsSalary> findByEmployee(Employee employee) {
        return paymentsSalaryDao.findByEmployee(employee);
    }

    public PaymentsSalary lastPaymentSalary(Employee employee) {
        return paymentsSalaryDao.lastPaymentSalary(employee);
    }

}
